package com.violet.domain.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.violet.annotation.transition.CNoCopy;
import com.violet.annotation.transition.TDefaultValue;
import com.violet.annotation.transition.TNoTransition;
import com.violet.annotation.transition.TNoTransitionWithDefaultId;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("rider")
public class Rider implements PO {
    @CNoCopy
    @TNoTransitionWithDefaultId(prefix = "P")
    private String id;

    private String name;
    private String phone;
    private Boolean status;

    @CNoCopy
    @TDefaultValue
    private LocalDateTime joinTime;
    @CNoCopy
    @TNoTransition
    private LocalDateTime leaveTime;

    @CNoCopy
    @TDefaultValue
    private Integer totalOrders;  // 总接单数
    @CNoCopy
    @TDefaultValue
    private Integer todayOrders;  // 当日接单数
}
